﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site1.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="ueEngine.Biz.Inf.LogicEntity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <link href="/content/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/content/css/joblist.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/scripts/jquery-1.4.1.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content">
        <div class="joblist">
            <div class="joblist-left">
                <div class="joblist-list">
                    <div class="joblist-header">
                        <div class="joblist-line1">
                            <span style="margin-left: 15px;">兼职</span></div>
                        <div class="joblist-line5">
                            职位类型
                        </div>
                        <div class="joblist-line3">
                            时间</div>
                        <div class="joblist-line2">
                            区域</div>
                        <div class="joblist-line4">
                            招聘企业
                        </div>
                    </div>
                    <%var list = ViewData["data"] as ItemListBox<RecruitSheetModel>;
                      foreach (var item in list.Data)
                      {
                          foreach (var job in item.Positions)
                          {%>
                    <div class="joblist-item">
                        <div class="joblist-line1">
                            <div class="joblist-item-title">
                                <a href="/manage/pass/<%:item.Id %>?positionId=<%:job.Id %>">审核通过</a>
                                <a href="/manage/pass/<%:item.Id %>?positionId=<%:job.Id %>&recommand=1">推荐</a> 
                                <a href="/manage/delete/<%:item.Id %>?positionId=<%:job.Id %>">删除</a>
                                <a href="/home/jobdetail_<%=item.Id %>" title="<%=item.Caption %>" target="_blank">
                                    <%=item.Caption.PieceOfString(0, 16)%></a> 
                            </div>
                        </div>
                        <div class="joblist-line5">
                            <a>
                                <%:((PositionType)job.PositionType).Mapping().PieceOfString(0, 8)%></a>
                        </div>
                        <div class="joblist-line3">
                            <%
                              var span = DateTime.Now.Subtract(item.PublishDate);
                              if (span.TotalMinutes <= 30)
                              { %>
                            <%:(span.TotalMinutes) < 1 ? "1" : ((int)span.TotalMinutes).ToString()%>分钟前
                            <%}
                              else if (DateTime.Now.DayOfYear - item.PublishDate.DayOfYear == 0)
                              { %>
                            <%:"今天"%>
                            <%}
                              else
                              {%>
                            <%:item.PublishDate.ToString("M-d")%>
                            <%} %></div>
                        <div class="joblist-line2">
                            <a href="javascript:;">
                                <%:item.WorkArea.Mapping()%></a>
                        </div>
                        <div class="joblist-line4">
                            <span title="<%:item.DepositCompany.CompanyName %>">
                                <%:item.DepositCompany.CompanyName.PieceOfString(0, 15)%></span>
                        </div>
                    </div>
                    <%}
                      } %>
                </div>
                <div class="joblist-pages">
                    <!--上一页-->
                    <%if (list.PrePage <= 0 && list.CurrentPage == 0)
                      {%>
                    <div class="joblist-pages-prev-gray">
                        <a href="javascript:;"></a>
                    </div>
                    <%}
                      else
                      { %>
                    <div class="joblist-pages-prev">
                        <a href="javascript:;" onclick="setpage(<%:list.PrePage %>);OnPost()"></a>
                    </div>
                    <%} %>
                    <%=list.PageItemSegment %>
                    <%if (list.NextPage <= 0 || list.NextPage >= list.TotlePage || list.CurrentPage == list.TotlePage - 1)
                      { %>
                    <div class="joblist-pages-next-gray">
                        <a href="javascript:;"></a>
                    </div>
                    <%}
                      else
                      { %>
                    <div class="joblist-pages-next">
                        <a href="javascript:;" onclick="setpage(<%:list.NextPage %>);OnPost()"></a>
                    </div>
                    <%} %>
                </div>
            </div>
            <div class="joblist-right">
                <div class="rightad">
                    <a href="/content/html/default.html" target="_blank">
                        <img alt="曦雅舞蹈俱乐部" src="/content/images/sidead1.jpg" /></a>
                </div>
                <div class="rightad">
                    <a href="#">文字广告</a>
                </div>
                <div class="rightad">
                    <div class="rightad-title">
                        <a href="http://www.csaep.org" title="中华科教出版社-全球最大中文开源电子论文出版社" target="_blank">中华科教出版社</a></div>
                    <div>
                        硕士论文，毕业论文，学术期刊</div>
                    <a href="http://www.csaep.org" target="_blank">www.csaep.org</a>
                    <div class="hspace10">
                    </div>
                </div>
                <div class="rightad">
                    <div class="rightad-title">
                        <a href="http://www.cqyupo.com" target="_blank">重庆玉珀保温建材</a></div>
                    <div>
                        保温材料，外墙保温系统</div>
                    <a href="http://www.cqyupo.com" target="_blank">www.bayu.cc</a>
                    <div class="hspace10">
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
